﻿Partial Public Class CercaAnnunci
    Inherits System.Web.UI.Page
    Public contratto As Integer = 0
    Public immobile As Integer = 0
    Public comune As Integer = 0
    Public prezzoDa As Integer = 0
    Public prezzoA As Integer = 0
    Public pagetitle As String = ConfigurationManager.AppSettings("sitename")
    Public annunciLimit As Integer = CInt(ConfigurationManager.AppSettings("annunciLimit"))
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not String.IsNullOrEmpty(Request.QueryString("contratto")) Then contratto = CInt(Request.QueryString("contratto"))
        If Not String.IsNullOrEmpty(Request.QueryString("immobile")) Then immobile = CInt(Request.QueryString("immobile"))
        If Not String.IsNullOrEmpty(Request.QueryString("comune")) Then comune = CInt(Request.QueryString("comune"))
        If Not String.IsNullOrEmpty(Request.QueryString("prezzoDa")) Then prezzoDa = CInt(Request.QueryString("prezzoDa"))
        If Not String.IsNullOrEmpty(Request.QueryString("prezzoA")) Then prezzoA = CInt(Request.QueryString("prezzoA"))
        Page.Title = pagetitle & " - Ricerca Immobile"
    End Sub
End Class